package fundamental;

public class FirstVehicle extends Vehicle {
    public Depot start_end;
    public FirstVehicle(int cap, double fcost, double vcost) {
        super(cap, fcost, vcost);
    }

    @Override
    public void add(Point point) {
        super.add(point);
        if (point instanceof Cand) {
            loading += ((Cand)point).loading;
        }
        route.add(point);
    }
}
